<#include "/common/amaze.html" /> <@layout>
<head>

</head>


<script>
function add(id,yxbz){
		window.location.href="${ctx}/wxContent/view/"+ id  ;
}
function del(id){
	   if(confirm("确定要清空数据吗？")){
			    $.post('${ctx}/wxContent/del?id=' +id, function(data) {
			     		if(data=="1"){
			     			alert("删除成功！");
			     			window.location.reload();
			     			return true;
			     		}else{
			     			alert("删除失败！");
			     			return true;
			     		}
			    },"text");
	   }
}
</script>
<body>
	<header class=" am-header-default am-topbar ">
		<div class="am-container">
			<h1 class=" am-topbar-brand" style="color: white;">超级朋友圈3.0
				&nbsp;&nbsp;&nbsp; 我的图文</h1>
		</div>
	</header>
	<div data-am-widget="list_news"
		class="am-list-news am-list-news-default">
		<!--列表标题-->
		<div class="am-list-news-hd am-cf">
			<!--带更多链接-->

		</div>
		<div class="am-list-news-bd">
			<ul class="am-list">
				<!--缩略图在标题左边-->
				<#list newlist as m>
				<li
					class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left">
					<div class="am-u-sm-4 am-list-thumb">
						<a href="#" onclick="add(${(m.id)!});"> 
						<#if (m.picurl)? length gt 1>
						<img src="${ctx}<#if (m.picurl)?substring(0,1) =="/">${(m.picurl)!}<#else>/${(m.picurl)!}</#if>" alt="">
						</#if>
						</a>
					</div>
					<div class="am-u-sm-8 am-list-main">
						<h3 class="am-list-item-hd">
							<a href="#" onclick="add('${(m.id)!}','${(m.yxbz)!}');">${(m.title)!} </a>
						</h3>
						<div class="am-list-item-text">${(m.content)!}</div>
						<div style="text-align:right">
						<button class="am-btn am-btn-danger am-btn-xs" onclick="del('${(m.id)}')">删除</button>
						</div>
					</div>
				</li> </#list>
			</ul>
		</div>
	</div>

	<hr class="am-article-divider blog-hr">
	<footer class="am-margin-top">
		<hr>
		<a
			href="http://mp.weixin.qq.com/s?__biz=MjM5NDQyOTYxNA==&mid=246067933&idx=1&sn=70875eb3cfa15e8a135bd071f95c6377#rd">
			<img src="${ctx}/img/mmexport.jpg" />
		</a>
		<p class="am-text-center">
			<small>by 全国交通网.</small>
		</p>
	</footer>

	<!-- /.page-content -->

</body>


<!-- 以上页面内容 开发时删除 -->

<script src='${ctx}/static/jquery/1.8.3/jquery.js'
	type='text/javascript'></script>
<!--[if (gte IE 9)|!(IE)]><!-->
<script src="${ctx}/css/assets/js/amazeui.min.js"></script>
<!--<![endif]-->

<script src='${ctx}/static/easyui/1.3.2/jquery.easyui.min.js'
	type='text/javascript'></script>
<script>
wx.hideOptionMenu();
</script>

</@layout>
